﻿@model RRHH.RRHH_Service.BEPersonal

@{
    ViewBag.Title = "Editar";
}

<h2>Editar Empleado</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    
    using (var t = Html.JQueryUI().BeginTabs())
    {
        t.Tab("Informacion General", "tab1");
        t.Tab("Direccion", "tab2");
        t.Tab("Informacion SUNAT", "tab3");
        using (t.BeginPanel())
        {
            <div class="editor-label">
                DNI  
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NUMERODOCUMENTO) <input id="btnConsultarDNI" type="button" value="Verificar DNI" />
                @Html.ValidationMessageFor(model => model.NUMERODOCUMENTO)
            </div>
            <div class="editor-label">
                Nombre
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NOMBRESEMPLEADO)
                @Html.ValidationMessageFor(model => model.NOMBRESEMPLEADO)
            </div>
            <div class="editor-label">
                Apellido Paterno
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.APEPATERNOEMPLEADO)
                @Html.ValidationMessageFor(model => model.APEPATERNOEMPLEADO)
            </div>

            <div class="editor-label">
                Apellido Materno
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.APEMATERNOEMPLEADO)
                @Html.ValidationMessageFor(model => model.APEMATERNOEMPLEADO)
            </div>

            <div class="editor-label">
                Fecha de Nacimiento
            </div>
            <div class="editor-field">
                @Html.JQueryUI().DatepickerFor(model => model.FECHANACIMIENTO)
                @Html.ValidationMessageFor(model => model.FECHANACIMIENTO)
            </div>

            <div class="editor-label">
                Estado Civil
            </div>
            <div class="editor-field">
               @* @Html.DropDownList("ddEstCivil", ViewData["ddEstCivil"] as SelectList)*@
            </div>

            <div class="editor-label">
                Sexo
            </div>
            <div class="editor-field">
               @* @Html.DropDownList("ddlSexo", ViewData["ddlSexo"] as SelectList)*@
            </div>
            <div class="editor-label">
                Email
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.EMAIL)
                @Html.ValidationMessageFor(model => model.EMAIL)
            </div>
        }
        using (t.BeginPanel())
        {
            <div class="editor-label">
                Direccion Completa
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DIRECCIONEMPLEADO)
                @Html.ValidationMessageFor(model => model.DIRECCIONEMPLEADO)
            </div>
    
            <div class="editor-label">
                Departamento
            </div>
            <div class="editor-field">
             @*   @Html.DropDownList("ddlDepartamento", ViewData["ddlDepartamento"] as SelectList, "-Selecciona-")*@
            </div>
            <div class="editor-label">
                Provincia
            </div>
            <div class="editor-field">
              @*  @Html.DropDownList("ddlProvincia", ViewData["ddlProvincia"] as SelectList)*@
            </div>
            <div class="editor-label">
                Distrito
            </div>
            <div class="editor-field">
               @*  @Html.DropDownList("ddlDistrito", ViewData["ddlDistrito"] as SelectList)*@
            </div>
        }
        using (t.BeginPanel())
        {

        }
    }
    

    <fieldset>
        <legend>PERSONAL</legend>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar a la lista", "ListadoPersonal")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
